﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace OpenMinded.Model
{
    /// <summary>
    /// Users:实体类：系统用户表
    /// </summary>
    [Serializable]
    public class Users
    {
        public Users()
        { }
        public Users(int uid, string loginid, string loginpwd, int? mainrole, string auxiliaryrole, int? positionrole, string deptrole) { 
            
        }
        public Users(int uid, string loginid, string loginpwd)
        {
            this.UId = uid;
            this.LoginId = loginid;
            this.LoginPwd = loginpwd;
        }
        #region Model
        private int _uid;
        private string _loginid;
        private string _nickname;
        private string _realname;
        private string _loginpwd;
        private int? _mainrole;
        private string _auxiliaryrole;
        private int? _positionrole;
        private string _deptrole;
        private int _posid;
        private int _deptid;
        private string _auxiliarydeptid;
        private bool _sex;
        private DateTime? _borndate;
        private bool _ispublicbirth;
        private string _mobilephone;
        private bool _ispublicphone;
        private string _email;
        private string _qq;
        private string _msn;
        private byte[] _photo;
        private int? _state;
        private string _shotmenu;
        /// <summary>
        /// 编号
        /// </summary>
        public int UId
        {
            set { _uid = value; }
            get { return _uid; }
        }
        /// <summary>
        /// 登录名
        /// </summary>
        public string LoginId
        {
            set { _loginid = value; }
            get { return _loginid; }
        }
        /// <summary>
        /// 昵称
        /// </summary>
        public string NickName
        {
            set { _nickname = value; }
            get { return _nickname; }
        }
        /// <summary>
        /// 真实姓名
        /// </summary>
        public string RealName
        {
            set { _realname = value; }
            get { return _realname; }
        }
        /// <summary>
        /// 登陆密码
        /// </summary>
        public string LoginPwd
        {
            set { _loginpwd = value; }
            get { return _loginpwd; }
        }
        /// <summary>
        /// 主要角色
        /// </summary>
        public int? MainRole
        {
            set { _mainrole = value; }
            get { return _mainrole; }
        }
        /// <summary>
        /// 辅助角色
        /// </summary>
        public string AuxiliaryRole
        {
            set { _auxiliaryrole = value; }
            get { return _auxiliaryrole; }
        }
        /// <summary>
        /// 职位权限
        /// </summary>
        public int? PositionRole
        {
            set { _positionrole = value; }
            get { return _positionrole; }
        }
        /// <summary>
        /// 部门权限
        /// </summary>
        public string DeptRole
        {
            set { _deptrole = value; }
            get { return _deptrole; }
        }
        /// <summary>
        /// 职位编号
        /// </summary>
        public int PosId
        {
            set { _posid = value; }
            get { return _posid; }
        }
        /// <summary>
        /// 部门编号
        /// </summary>
        public int DeptId
        {
            set { _deptid = value; }
            get { return _deptid; }
        }
        /// <summary>
        /// 辅助部门编号组
        /// </summary>
        public string AuxiliaryDeptId
        {
            set { _auxiliarydeptid = value; }
            get { return _auxiliarydeptid; }
        }
        /// <summary>
        /// 性别，true 男，false 女
        /// </summary>
        public bool Sex
        {
            set { _sex = value; }
            get { return _sex; }
        }
        /// <summary>
        /// 出生日期
        /// </summary>
        public DateTime? BornDate
        {
            set { _borndate = value; }
            get { return _borndate; }
        }
        /// <summary>
        /// 是否公开生日
        /// </summary>
        public bool IsPublicBirth
        {
            set { _ispublicbirth = value; }
            get { return _ispublicbirth; }
        }
        /// <summary>
        /// 手机
        /// </summary>
        public string MobilePhone
        {
            set { _mobilephone = value; }
            get { return _mobilephone; }
        }
        /// <summary>
        /// 是否公开电话
        /// </summary>
        public bool IsPublicPhone
        {
            set { _ispublicphone = value; }
            get { return _ispublicphone; }
        }
        /// <summary>
        /// Email
        /// </summary>
        public string Email
        {
            set { _email = value; }
            get { return _email; }
        }
        /// <summary>
        /// QQ
        /// </summary>
        public string QQ
        {
            set { _qq = value; }
            get { return _qq; }
        }
        /// <summary>
        /// MSN
        /// </summary>
        public string MSN
        {
            set { _msn = value; }
            get { return _msn; }
        }
        /// <summary>
        /// 头像
        /// </summary>
        public byte[] Photo
        {
            set { _photo = value; }
            get { return _photo; }
        }
        /// <summary>
        /// 状态
        /// </summary>
        public int? State
        {
            set { _state = value; }
            get { return _state; }
        }
        /// <summary>
        /// 快捷菜单组
        /// </summary>
        public string ShotMenu
        {
            set { _shotmenu = value; }
            get { return _shotmenu; }
        }
        #endregion Model

    }
}
